from flask import Flask
from flask import request
from flask import redirect
app = Flask(__name__)

@app.route('/')
def hello():
	user_agent = request.headers.get('User-Agent')
	return '<p>Your browser is %s </p>' % user_agent

@app.route('/baidu')
def baidu():
	return redirect('https://baidu.com')

